package com.yiren.manager.form.elder;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yiren.core.form.GenericForm;
import com.yiren.manager.form.pension.YrBaseServiceCostForm;
import com.yiren.manager.form.pension.YrBedCostForm;
import com.yiren.manager.form.pension.YrNursingCostForm;
import com.yiren.manager.utils.CustomJsonDateDeserializer;
import com.yiren.manager.utils.CustomSimpleDateDeserializer;

public class YrElderForm extends GenericForm{

	private static final long serialVersionUID = 1213773147068376135L;

	private String elderId;

 	@DateTimeFormat(pattern="yyyy-MM-dd")  
	private Date birthday;

	private String cardId;

	private String createId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date createTime;

	private String liveAddress;

	private String maritalStatus;

	private String name;

	private String peoples;

	private String registeredResidence;

	private String remark;

	private Integer sex;

	private String updateId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
	private Date updateTime;

	private Integer personType;

	private String personTypeName;
	
	private Integer beHospitalStatus;
	
	private Integer elderType;
	
	private String recorder;
	
	private Integer isFinancialCs;
	
	private String bankName;
	
	private String contactName;
	
	private String contactPhoneNumer;
	
	private YrElderBeHospitalForm elderBeHospitalForm;
	
	private YrBeHospitalFeeForm beHospitalFeeForm;
	
	public YrElderBeHospitalForm getElderBeHospitalForm() {
		return elderBeHospitalForm;
	}

	public void setElderBeHospitalForm(YrElderBeHospitalForm elderBeHospitalForm) {
		this.elderBeHospitalForm = elderBeHospitalForm;
	}

	public YrBeHospitalFeeForm getBeHospitalFeeForm() {
		return beHospitalFeeForm;
	}

	public void setBeHospitalFeeForm(YrBeHospitalFeeForm beHospitalFeeForm) {
		this.beHospitalFeeForm = beHospitalFeeForm;
	}

	public Integer getIsFinancialCs() {
		return isFinancialCs;
	}

	public void setIsFinancialCs(Integer isFinancialCs) {
		this.isFinancialCs = isFinancialCs;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public String getContactPhoneNumer() {
		return contactPhoneNumer;
	}

	public void setContactPhoneNumer(String contactPhoneNumer) {
		this.contactPhoneNumer = contactPhoneNumer;
	}

	public String getRecorder() {
		return recorder;
	}

	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}

	public Integer getElderType() {
		return elderType;
	}

	public void setElderType(Integer elderType) {
		this.elderType = elderType;
	}

	public Integer getBeHospitalStatus() {
		return beHospitalStatus;
	}

	public void setBeHospitalStatus(Integer beHospitalStatus) {
		this.beHospitalStatus = beHospitalStatus;
	}

	public Integer getPersonType() {
		return personType;
	}

	public void setPersonType(Integer personType) {
		this.personType = personType;
	}

	public String getPersonTypeName() {
		return personTypeName;
	}

	public void setPersonTypeName(String personTypeName) {
		this.personTypeName = personTypeName;
	}

	public String getElderId() {
		return elderId;
	}

	public void setElderId(String elderId) {
		this.elderId = elderId;
	}

	public Date getBirthday() {
		return birthday;
	}

	@JsonDeserialize(using=CustomSimpleDateDeserializer.class)
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getLiveAddress() {
		return liveAddress;
	}

	public void setLiveAddress(String liveAddress) {
		this.liveAddress = liveAddress;
	}

	public String getMaritalStatus() {
		return maritalStatus;
	}

	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPeoples() {
		return peoples;
	}

	public void setPeoples(String peoples) {
		this.peoples = peoples;
	}

	public String getRegisteredResidence() {
		return registeredResidence;
	}

	public void setRegisteredResidence(String registeredResidence) {
		this.registeredResidence = registeredResidence;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
